package com.yun.zf.common.admin.model.house;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

@Data
public class HouseDetailMo {

    @NotNull(message = "房源表id不能为空")
    @ApiModelProperty(value = "房源表id")
    private Long basicId;

    @NotNull(message = "期望价格不能为空")
    @ApiModelProperty(value = "期望价格")
    private BigDecimal hopedPrice;

    @NotNull(message = "底价不能为空")
    @ApiModelProperty(value = "底价")
    private BigDecimal exhaustPrice;

    @NotNull(message = "面积不能为空")
    @ApiModelProperty(value = "面积")
    private BigDecimal area;


    @NotNull(message = "卧室不能为空")
    @ApiModelProperty(value = "几卧")
    private Integer bedrooms;


    @NotNull(message = "厅不能为空")
    @ApiModelProperty(value = "几客厅")
    private Integer livingRoom;


    @NotNull(message = "卫不能为空")
    @ApiModelProperty(value = "几卫")
    private Integer toilet;

    @NotNull(message = "楼层不能为空")
    @ApiModelProperty(value = "楼层")
    private Integer floor;

    @NotNull(message = "总楼层不能为空")
    @ApiModelProperty(value = "总楼层")
    private Integer totalFloor;

    /**
     * 房屋朝向，如果是合租，则填卧室朝向，只能是英文字母，中文搜索有问题
     */
    @NotBlank(message = "房屋朝向不能为空")
    @ApiModelProperty(value = "房屋朝向只能字母如 南:S,北N,东E,西W")
    private String direction;

    /**
     * 是否有电梯，0有，1 无
     */
    @NotNull(message = "是否有电梯为必选")
    @ApiModelProperty(value = "是否有电梯，0有，1 无")
    private Integer isElevator;



    @ApiModelProperty(value = "标题")
    private String title;

}
